package com.mdb.open.trade.domain.po.trade;

/*
* Copyright (C), 2017-2019 澳发科技(MDB)
* FileName: TfCusAccService.java
* Author:   you.yichao
* Date:     2019-07-15
* History:
* <author>          <time>          <version>          <desc>
* you.yichao         2019-07-15          V1.00             代码生成器初始生成代码
* -----------------------------------------------------------
* 作者姓名           修改时间           版本号            描述
*/


import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.open.common.enums.trade.status.CusAccStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* 类描述：
*  融资客户账户表实体类
*
* @author you.yichao
* @date 2019-07-15
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tf_cus_acc")
public class CusAcc extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 唯一性Id
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 客户编码
    */
    @TableField("customer_code")
    private String customerCode;

    /**
    * 客户名称
    */
    @TableField("customer_name")
    private String customerName;

    /**
    * 银行客户号
    */
    @TableField("bank_client_no")
    private String bankClientNo;

    /**
    * 贸易融资账户
    */
    @TableField("da_acc")
    private String daAcc;

    /**
    * 存管账号
    */
    @TableField("sa_acc")
    private String saAcc;

    /**
    * 贷款账号
    */
    @TableField("loan_acc")
    private String loanAcc;

    /**
    * 状态
    */
    private CusAccStatusEnum status;

    /**
    * 创建时间
    */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 更新时间
    */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
    * 乐观锁版本号
    */
    @Version
    private Integer version;

    /**
    * 删除标识
    */
    @TableLogic
    private boolean deleted;

}
